package cn.lutu.domain.repository.impl;

import cn.lutu.dao.mapper.RoomMapper;
import cn.lutu.domain.repository.RoomRepository;
import cn.lutu.protocol.entity.Room;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class RoomRepositoryImpl implements RoomRepository {

    @Autowired
    RoomMapper roomMapper;


    @Override
    public int insert(Room room) {
        return roomMapper.insert(room);
    }

    @Override
    public int updateById(Room room) {
        return roomMapper.updateById(room);
    }
}
